package com.qinghuan.threads.chapterThree;

import java.util.Random;

/**
 * @Author: dubao
 * @Date: 2022/5/22 10:25
 * @Description:
 */
public class Test3_1_1 {

    public static void main(String[] args) {
        //1 创建一个默认种子的随机数生成器
        Random random = new Random();

        for (int i=0; i<5; i++) {
            System.out.println(random.nextInt(5));
        }
    }

}
